<ion-header-bar align-title="center" class="bar-calm" id="handerMain">
    <h1 class="title">优惠券</h1>
    <div class="return_img" ng-click="_up_return()">
        <img src="img/return_1.png" alt="">
    </div>
</ion-header-bar>
<ion-content class="has-header" id="content" ng-controller="save" style="background: #F3F3F3;">
    <!--头部-->
    <ul class="Order_Tab save_tab" id="small">
        <li ng-class="e==1?'Order_active':'no_active'" ng-click="View_switch(1,2)">可用优惠券</li>
        <li ng-class="b==1?'Order_active':'no_active'" ng-click="View_switch(2,1)">不可用优惠券</li>
    </ul>
    <div ng-if="insave==1">
        <!--内容-->
        <div ng-if="e==1">
            <!--使用过的优惠券-->
            <div class="coupon_conTer" ng-repeat="available in available track by $index">
                <div class="coupon">
                    <div class="coupon_le">
                        <img ng-src="img/coupou3.png" alt="">
                        <div>
                            <h4>{{available.offer_num}}元</h4>
                            <span>满{{available.limit_num}}元可用</span>
                        </div>
                    </div>
                    <div class="coupon_rt">
                        <div>
                            <span ng-class="e==1?'You_roll_o':'You_roll_t'">友卷</span>
                            <span>{{available.name}}</span>
                        </div>
                        <div>
                            <span>{{available.startdate | date:'yyyy.MM.dd'}}-{{available.enddate | date:'yyyy.MM.dd'}}</span>
                        </div>
                    </div>
                </div>
                <!--//遮挡-->
                <div class="saveClose" ng-click="lifeclick($event)" data-inid="{{available.id}}" data-number="{{available.offer_num}}"></div>
            </div>
        </div>
        <div ng-if="b==1" ng-repeat="available in available track by $index">
            <!--没有使用过的优惠券-->
            <div class="coupon_conTer">
                <div class="coupon">
                    <div class="coupon_le">
                        <img ng-src="img/coupou4.png" alt="">
                        <div>
                            <h4>{{available.offer_num}}元</h4>
                            <span>满{{available.limit_num}}元可用</span>
                        </div>
                    </div>
                    <div class="coupon_rt">
                        <div>
                            <span ng-class="b==1?'You_roll_t':'You_roll_o'">友卷</span>
                            <span>{{available.name}}</span>
                        </div>
                        <div>
                            <span>{{available.startdate | date:'yyyy.MM.dd'}}-{{available.enddate | date:'yyyy.MM.dd'}}</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="closeZwsj" ng-if="insave==2">
        暂时没有数据
    </div>
</ion-content>
